﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<#include "/pages/include/include.ftl" />
<@h.css href="/css/uc.css"/>
<@h.js src="/javascripts/public/area.js"/>
<#include "/pages/include/setlayout.ftl" />
<script type="text/javascript">
	var area=new area();
</script>
</head>

<body>
<#assign menuId="area">
<div id="layout1" class="wrapper">

<#include "/pages/include/top.ftl" />
	
	<#include "/pages/person/myfile/file_menu.ftl" />
	
	<div position="center" title="首页板块管理">
		<div  class="sList" >
		<table width="100%" class="sTable" cellpadding="0" cellspacing="0" border="0" >
			<tr>
				<th class="sTh">名称</th>
				<th class="sTh">是否显示</th>
				<th class="sTh">操作</th>
			</tr>
		<#if areas?exists>
		<#list areas as a>
			<tr class="<#if a_index%2==0>sRow2<#else>sRow1</#if>">
				<td class="sCell"><a href="${contextPath}/front/index-newsListByArea.action?areaId=${a.id?if_exists}">${a.name}</a></td>
				<td class="sCell">
				<#if action.hasAuth("INDEX_AREA_EDIT")>
					<input type="checkbox" class="inputCheckbox"  <#if a.show>checked="checked"</#if> onclick="area.show('${a.id}',this);"/>
				</#if>
				</td>
				<td class="sCell">
				<#if action.hasAuth("INDEX_AREA_EDIT")>
					<a class="sliverbutton"  onclick="area.edit('${a.id}','${a.name}');" style="width:43px;"><span>编辑</span></a>
				</#if>
				</td>
			</tr>
		</#list>
		</#if>
		</table>
		</div>
	</div>
	
	<#include "/pages/include/bottom.ftl" />
	
</div>

</body>

</html>
